

OBJ=obj
SRC=src
EXE=bin
CPPFLAGS=-c -g
CXX=g++

SRCFILES=
OBJFILES=$(OBJ)/alignedMalloc.o $(OBJ)/2DMalloc.o

all: testAlignedMalloc.exe \
     test2DMalloc.exe \
     install

testAlignedMalloc.exe : $(OBJ)/testAlignedMalloc.o $(OBJFILES)
	$(CXX) -o $@ $^

test2DMalloc.exe : $(OBJ)/test2DMalloc.o $(OBJFILES)
	$(CXX) -o $@ $^

$(OBJ)/%.o : $(SRC)/%.cpp
	$(CXX) $(CPPFLAGS) -o $@ $<

install:
	mv *.exe $(EXE)/.

clean:
	rm -rf 	$(OBJ)/*.o $(EXE)/*.exe
